<?php
    class User {
        private $name;
        private $showNag = false;
        private $types = array();
        
        function User() {
        }
        
        function setName( $name ) { $this->name = $name; }
        function getName() { return $this->name; }
        
        function getShowNag() {
            return $this->showNag;
        }
        
        function setShowNag( $value ) {
            $this->setShowNag = $value;
        }
        
        function addType( $type ) {
            $this->types[] = $type;
        }
        
        function getNumTypes() {
            return count($this->types);
        }
        
        function getType( $i ) {
            return $this->types[$i];
        }
    }
?>
